#ifndef PAINTERWIDGET_H
#define PAINTERWIDGET_H

#include <QWidget>
#include <QLabel>

class PainterWidget : public QWidget
{
	Q_OBJECT
public:
	explicit PainterWidget(QWidget *parent = nullptr);

private:
	QLabel * highLbl;
	QLabel * lowLbl;

	int mHighTemp[7] = {};
	int mLowTemp[7] = {};
private:
	void PaintHigh();
	void PaintLow();
	void updateTemp(); // 更新温度

public:
	bool eventFilter(QObject *watched, QEvent *event);

//protected:
//	void paintEvent(QPaintEvent *event);
};

#endif // PAINTERWIDGET_H
